//
//  CommentsCell.swift
//  ListenFM
//
//  Created by 胡定锋Mac on 2017/8/12.
//  Copyright © 2017年 胡定锋. All rights reserved.
//

import UIKit

class CommentsCell: UITableViewCell {
    
    @IBOutlet weak var headIamgeV: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var contentLabel: UILabel!
    
    var cellmodel:CommentListModel?{
        didSet{
            guard let iconURL = URL(string : (cellmodel?.user?.avatar)!) else {return}
            headIamgeV.kf.setImage(with: iconURL)
            
            titleLabel.text = (cellmodel?.user?.nickname)!
            
            contentLabel.text = cellmodel?.content
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.headIamgeV.clipsToBounds = true
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
